Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.platform.smart.query.layouts--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.smart.query.layouts inside nuxeo-platform-smart-query-jsf-5.8.jar

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="nxql_incremental_smart_query_widget">
          <documentation>
            This widget displays the query builder as well as the query part in a
            textarea in edit mode, and the query part in view mode.
    
            It can only be used once on a given page, as it is bound to the
            IncrementalSmartquery instance held by the seam component
            'smartNXQLQueryActions'.
    
            It needs to be bound to the query part, and accepts the the following
            properties configuration:
            <ul>
              <li>
                updateQueryPart: boolean indicationg if the bound query part should
                be updated on ajax calls.
              </li>
              <li>
                selectionLayout: the layout holding conditions to display in this
                builder
              </li>
            </ul>
          </documentation>
          <configuration>
            <categories>
              <category>configuration_not_ready</category>
            </categories>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/nxql_incremental_smart_query_widget.xhtml
          </property>
        </widgetType>

    This widget displays the query builder as well as the query part in a textarea in edit mode, and the query part in view mode. It can only be used once on a given page, as it is bound to the IncrementalSmartquery instance held by the seam component 'smartNXQLQueryActions'. It needs to be bound to the query part, and accepts the the following properties configuration:

  • <widgetType name="incremental_smart_query_condition">
          <documentation>
            This widget displays the query builder inputs for a given
            IncrementalSmartQuery instance.
    
            It needs to be displayed in a layout using the template
            '/layouts/incremental_smart_query_selection_layout_template.xhtml': this
            template will display all the needed selectors to build the query.
    
            Its subwidgets configuration is used to display inputs to set the query
            condition right expression. These subwidgets modes can be set according
            to the chosen operator.
    
            It needs to be bound to an IncrementalSmartQuery instance, and it
            accepts the the following properties configuration:
            <ul>
              <li>
                searchField: string property that will be used to build the
                condition left expression (for instance 'dc:title')
              </li>
              <li>
                availableOperators: property list of available operators (for
                instance 'IN', '=', '!='...)
              </li>
            </ul>
          </documentation>
          <configuration>
            <categories>
              <category>configuration_not_ready</category>
            </categories>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/incremental_smart_query_condition_widget.xhtml
          </property>
        </widgetType>

    This widget displays the query builder inputs for a given IncrementalSmartQuery instance. It needs to be displayed in a layout using the template '/layouts/incremental_smart_query_selection_layout_template.xhtml': this template will display all the needed selectors to build the query. Its subwidgets configuration is used to display inputs to set the query condition right expression. These subwidgets modes can be set according to the chosen operator. It needs to be bound to an IncrementalSmartQuery instance, and it accepts the the following properties configuration:

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="nxql_incremental_smart_query_widget">
      <documentation>
        This widget displays the query builder as well as the query part in a
        textarea in edit mode, and the query part in view mode.

        It can only be used once on a given page, as it is bound to the
        IncrementalSmartquery instance held by the seam component
        'smartNXQLQueryActions'.

        It needs to be bound to the query part, and accepts the the following
        properties configuration:
        <ul>
          <li>
            updateQueryPart: boolean indicationg if the bound query part should
            be updated on ajax calls.
          </li>
          <li>
            selectionLayout: the layout holding conditions to display in this
            builder
          </li>
        </ul>
      </documentation>
      <configuration>
        <categories>
          <category>configuration_not_ready</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/nxql_incremental_smart_query_widget.xhtml
      </property>
    </widgetType>

    <widgetType name="incremental_smart_query_condition">
      <documentation>
        This widget displays the query builder inputs for a given
        IncrementalSmartQuery instance.

        It needs to be displayed in a layout using the template
        '/layouts/incremental_smart_query_selection_layout_template.xhtml': this
        template will display all the needed selectors to build the query.

        Its subwidgets configuration is used to display inputs to set the query
        condition right expression. These subwidgets modes can be set according
        to the chosen operator.

        It needs to be bound to an IncrementalSmartQuery instance, and it
        accepts the the following properties configuration:
        <ul>
          <li>
            searchField: string property that will be used to build the
            condition left expression (for instance 'dc:title')
          </li>
          <li>
            availableOperators: property list of available operators (for
            instance 'IN', '=', '!='...)
          </li>
        </ul>
      </documentation>
      <configuration>
        <categories>
          <category>configuration_not_ready</category>
        </categories>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/incremental_smart_query_condition_widget.xhtml
      </property>
    </widgetType>

  </extension>